<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加课程</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        form {
            width: 300px;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color: white;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        label {
            display: block;
            margin-bottom: 5px;
        }
        input[type="text"], input[type="date"] {
            width: 100%;
            padding: 8px;
            margin: 5px 0;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 3px;
        }
        input[type="submit"] {
            width: 100%;
            background-color: #4CAF50;
            color: white;
            padding: 10px;
            margin-top: 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        input[type="submit"]:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<form action="saveCourse" method="post">
    <label for="name">课程名:</label><br>
    <input type="text" id="name" name="name" placeholder="请输入课程名"><br>
    <label for="count">课程人数:</label><br>
    <input type="text" id="count" name="count" placeholder="请输入课程人数"><br>
    <label for="startDate">开始时间:</label><br>
    <input type="date" id="startDate" name="startDate"><br>
    <label for="endDate">结束时间:</label><br>
    <input type="date" id="endDate" name="endDate"><br>
    <label for="teacher">教师:</label><br>
    <input type="text" id="teacher" name="teacher" placeholder="请输入教师"><br>
    <input type="submit" value="添加">
</form>
</body>
</html>
